package com.huaxin.device.dto.enums.validation;

import com.huaxin.device.dto.enums.validator.DeviceZoneTypeValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = DeviceZoneTypeValidator.class)
public @interface ValidDeviceZoneType {
    String message() default "无效的区域类型，允许值：electrical_shaft/electrical_room/telecom_shaft/telecom_room/living_room/bedroom/kitchen/bathroom/study/office/meeting_room/corridor/stairwell/elevator_lobby/basement_garage/equipment_room/storage_room";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}